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.0008593/0.0008593, allocations: 94.64 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 190.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.571/1.571, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003538, allocations: 8 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1312, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005904/0.1372, allocations: 5.285 MB / 363.6 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003802/0.1411, allocations: 1.506 MB / 365.1 MB, free: 6.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006832/0.1418, allocations: 19.94 kB / 365.1 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003392/0.1421, allocations: 123 kB / 365.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005743/0.1427, allocations: 249.9 kB / 365.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000835/0.1436, allocations: 263.6 kB / 365.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001299/0.1449, allocations: 1.247 MB / 367 MB, free: 5.055 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000544/0.1454, allocations: 312.4 kB / 367.3 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007402/0.1462, allocations: 410.5 kB / 367.7 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005842/0.1468, allocations: 485.9 kB / 368.2 MB, free: 3.855 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.1469, allocations: 60 kB / 368.2 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002875/0.1472, allocations: 99.95 kB / 368.3 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001645/0.1474, allocations: 183.2 kB / 368.5 MB, free: 3.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002001/0.1476, allocations: 221.2 kB / 368.7 MB, free: 3.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009619/0.1486, allocations: 1.157 MB / 369.9 MB, free: 2.137 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1486, allocations: 0 / 369.9 MB, free: 2.137 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1486, allocations: 0 / 369.9 MB, free: 2.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.593e-05/0.1486, allocations: 0 / 369.9 MB, free: 2.137 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.002128/0.1507, allocations: 1.227 MB / 371.1 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.1508, allocations: 8.031 kB / 371.1 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001653/0.151, allocations: 143.4 kB / 371.2 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003472/0.1513, allocations: 134.6 kB / 371.4 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007086/0.152, allocations: 0.518 MB / 371.9 MB, free: 12 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2077/0.3597, allocations: 62.89 kB / 372 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003182/0.3601, allocations: 92.16 kB / 372 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.3619, allocations: 0.8558 MB / 372.9 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.362, allocations: 2.391 kB / 372.9 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.721e-05/0.362, allocations: 36.14 kB / 372.9 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.162e-05/0.3621, allocations: 20.75 kB / 373 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/0.3638, allocations: 0.8768 MB / 373.8 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006222/0.37, allocations: 3.278 MB / 377.1 MB, free: 17.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.3713, allocations: 0.6815 MB / 377.8 MB, free: 16.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007516/0.3721, allocations: 440.7 kB / 378.2 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.803e-05/0.3722, allocations: 11.58 kB / 378.2 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.151e-05/0.3722, allocations: 47.89 kB / 378.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 3.446e-06/0.3722, allocations: 0 / 378.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004928/0.3772, allocations: 2.315 MB / 380.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.3772, allocations: 60.06 kB / 380.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008899/0.3781, allocations: 0.6032 MB / 381.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.375e-05/0.3782, allocations: 43.02 kB / 381.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003311/0.3786, allocations: 438.2 kB / 381.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002137/0.3788, allocations: 259.8 kB / 382 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.74e-05/0.3788, allocations: 16.06 kB / 382 MB, free: 14.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.379, allocations: 388.4 kB / 382.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007238/0.3797, allocations: 334.5 kB / 382.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007695/0.3805, allocations: 487.2 kB / 383.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007211/0.3813, allocations: 391.1 kB / 383.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.3813, allocations: 1.25 kB / 383.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002384/0.3837, allocations: 1.137 MB / 384.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.3837, allocations: 7 kB / 384.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.3837, allocations: 4.547 kB / 384.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005906/0.3843, allocations: 189.7 kB / 384.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009655/0.3853, allocations: 211.9 kB / 385.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003938/0.3892, allocations: 2.626 MB / 387.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008452/0.3901, allocations: 42.77 kB / 387.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.736e-05/0.3902, allocations: 38.92 kB / 387.8 MB, free: 10.91 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.000405/0.3906, allocations: 238.8 kB / 388 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.3908, allocations: 79.19 kB / 388.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001863/0.391, allocations: 91.94 kB / 388.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.391, allocations: 14.09 kB / 388.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.33e-05/0.391, allocations: 4.125 kB / 388.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.391, allocations: 3.422 kB / 388.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001413/0.3925, allocations: 0.8889 MB / 389.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.3925, allocations: 0.8906 kB / 389.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007875/0.3933, allocations: 158.3 kB / 389.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005497/0.3938, allocations: 182.9 kB / 389.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-05/0.3939, allocations: 22.34 kB / 389.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003187/0.3971, allocations: 2.643 MB / 392.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.3971, allocations: 0 / 392.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002862/0.4, allocations: 1.46 MB / 393.6 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.4003, allocations: 147.1 kB / 393.7 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.4005, allocations: 20.33 kB / 393.7 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00058/0.4011, allocations: 60.06 kB / 393.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.4012, allocations: 53.77 kB / 393.9 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.557e-05/0.4013, allocations: 23.11 kB / 393.9 MB, free: 7.168 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005073/0.4018, allocations: 421 kB / 394.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4018, allocations: 1.562 kB / 394.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009265/0.4027, allocations: 245 kB / 394.5 MB, free: 6.926 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.002872/0.4056, allocations: 2.049 MB / 396.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002241/0.4079, allocations: 1.063 MB / 397.6 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.4079, allocations: 0 / 397.6 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001252/0.4092, allocations: 0.655 MB / 398.3 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009449/0.4101, allocations: 133.5 kB / 398.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008182/0.4183, allocations: 5.665 MB / 404.1 MB, free: 15.46 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005568/0.4189, allocations: 0.9814 MB / 405.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004779/0.4194, allocations: 89.47 kB / 405.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004185/0.4198, allocations: 323.3 kB / 405.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4199, allocations: 0 / 405.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03675/0.4566, allocations: 17.2 MB / 422.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.4568, allocations: 214.8 kB / 422.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.36/2.817, allocations: 0 / 422.9 MB, free: 12.89 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)