Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009215/0.0009214, allocations: 98.09 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000976/0.0009762, allocations: 204.5 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002466/0.0002466, allocations: 11.98 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.131, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005261/0.1363, allocations: 4.853 MB / 363 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003017/0.1393, allocations: 1.576 MB / 364.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004895/0.1399, allocations: 19.94 kB / 364.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002219/0.1401, allocations: 115 kB / 364.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007407/0.1408, allocations: 350.9 kB / 365.1 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007772/0.1416, allocations: 263.6 kB / 365.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001232/0.1429, allocations: 0.8788 MB / 366.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005159/0.1434, allocations: 308.5 kB / 366.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007319/0.1441, allocations: 402.6 kB / 366.9 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005637/0.1447, allocations: 489.9 kB / 367.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.1448, allocations: 60 kB / 367.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002438/0.1451, allocations: 91.97 kB / 367.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.1453, allocations: 191.3 kB / 367.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002011/0.1455, allocations: 225.1 kB / 368 MB, free: 3.953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.1466, allocations: 1.142 MB / 369.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1467, allocations: 0 / 369.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.1467, allocations: 0 / 369.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.1467, allocations: 0 / 369.1 MB, free: 2.809 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002474/0.1492, allocations: 1.231 MB / 370.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.152e-05/0.1492, allocations: 12.03 kB / 370.3 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001785/0.1494, allocations: 135.5 kB / 370.5 MB, free: 1.375 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003578/0.1498, allocations: 134.6 kB / 370.6 MB, free: 1.242 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007718/0.1506, allocations: 0.5257 MB / 371.1 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.742e-05/0.1507, allocations: 69.95 kB / 371.2 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.1508, allocations: 91.89 kB / 371.3 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2447/0.3955, allocations: 0.8452 MB / 372.1 MB, free: 18.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/0.3956, allocations: 0.6562 kB / 372.1 MB, free: 18.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.3957, allocations: 36.69 kB / 372.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-05/0.3958, allocations: 20.66 kB / 372.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002136/0.3979, allocations: 0.8719 MB / 373.1 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006728/0.4046, allocations: 3.279 MB / 376.3 MB, free: 17.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.406, allocations: 0.6764 MB / 377 MB, free: 16.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.91e-05/0.4061, allocations: 12.7 kB / 377 MB, free: 16.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.4061, allocations: 43.09 kB / 377.1 MB, free: 16.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 3.136e-06/0.4061, allocations: 0 / 377.1 MB, free: 16.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004866/0.411, allocations: 2.324 MB / 379.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.4111, allocations: 63.53 kB / 379.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009434/0.412, allocations: 0.6029 MB / 380.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.997e-05/0.4121, allocations: 40.55 kB / 380.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000282/0.4124, allocations: 438.4 kB / 380.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.4126, allocations: 257.7 kB / 380.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.593e-05/0.4127, allocations: 19.34 kB / 380.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.4128, allocations: 384.7 kB / 381.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000641/0.4135, allocations: 338.1 kB / 381.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007375/0.4142, allocations: 475.5 kB / 382 MB, free: 14.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007303/0.415, allocations: 394.4 kB / 382.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.415, allocations: 1.281 kB / 382.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002317/0.4173, allocations: 1.143 MB / 383.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/0.4173, allocations: 10.92 kB / 383.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.4174, allocations: 2.469 kB / 383.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005987/0.418, allocations: 185.6 kB / 383.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009196/0.4189, allocations: 203.2 kB / 383.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003762/0.4227, allocations: 2.687 MB / 386.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008812/0.4236, allocations: 37.88 kB / 386.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-05/0.4237, allocations: 38.66 kB / 386.7 MB, free: 11.24 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00048/0.4242, allocations: 242.7 kB / 386.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.4243, allocations: 79.47 kB / 387 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001782/0.4245, allocations: 99.25 kB / 387.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.4245, allocations: 7.594 kB / 387.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.626e-05/0.4245, allocations: 4.469 kB / 387.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.4246, allocations: 3.938 kB / 387.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001807/0.4264, allocations: 0.8811 MB / 388 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.4264, allocations: 1.312 kB / 388 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009181/0.4273, allocations: 153.8 kB / 388.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007609/0.4281, allocations: 188.3 kB / 388.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-05/0.4282, allocations: 21.83 kB / 388.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003977/0.4322, allocations: 2.694 MB / 391 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4322, allocations: 1.125 kB / 391 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003042/0.4352, allocations: 1.461 MB / 392.5 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/0.4356, allocations: 148.7 kB / 392.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.4357, allocations: 16.06 kB / 392.6 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006363/0.4363, allocations: 69.89 kB / 392.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.4365, allocations: 52.2 kB / 392.8 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.881e-05/0.4366, allocations: 28.7 kB / 392.8 MB, free: 7.457 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000766/0.4374, allocations: 417.7 kB / 393.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4374, allocations: 1.031 kB / 393.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001697/0.4391, allocations: 243.3 kB / 393.4 MB, free: 7.242 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00398/0.4431, allocations: 2.037 MB / 395.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003265/0.4464, allocations: 1.065 MB / 396.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.4464, allocations: 4.25 kB / 396.5 MB, free: 5.371 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.4479, allocations: 0.6513 MB / 397.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008473/0.4488, allocations: 123.9 kB / 397.3 MB, free: 4.918 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.4596, allocations: 7.904 MB / 405.2 MB, free: 14.31 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008369/0.4605, allocations: 1.001 MB / 406.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005976/0.4611, allocations: 101.4 kB / 406.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005656/0.4617, allocations: 325.5 kB / 406.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of SimCode: time 2.265e-06/0.4617, allocations: 0 / 406.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03848/0.5002, allocations: 17.17 MB / 423.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/0.5005, allocations: 213.7 kB / 424 MB, free: 11.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.371/2.871, allocations: 0 / 424 MB, free: 11.73 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1e-08 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)